package com.cskaoyan.mall.promo.remote;

import com.cskaoyan.mall.commons.result.ServiceCallResponse;
import com.cskaoyan.mall.order.dto.CreateSeckillOrderRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("duolai-order")
public interface OrderApiClient {
    @PostMapping(value = "/rpc/promotion/order")
    ServiceCallResponse createPromoOrder(@RequestBody CreateSeckillOrderRequest request);
}
